package cn.wetcland.urban.framework.vo;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class DriverOrderMapVO {

    private Long routeId;
    /**
     * originAddressId
     */
    private Long originAddressId;
    /**
     * destinationAddressId
     */
    private BigDecimal originLongitude;

    private BigDecimal originLatitude;

    private Long destinationAddressId;

    private BigDecimal destinationLongitude;

    private BigDecimal destinationLatitude;
    /**
     * originName
     */
    private String originName;
    /**
     * destinationName
     */
    private String destinationName;
    /**
     * distance
     */
    private Double distance;
    /**
     * duration
     */
    private String duration;
    /**
     * cost
     */
    private BigDecimal cost;
    /**
     * orderId
     */
    private Long orderId;
    /**
     * createTime
     */
    private Date createTime;

    private List<Step> steps;

    @Data
    public static class Step {
        private Long pathId;
        /**
         * routeId
         */
        private Long routeId;
        /**
         * instruction
         */
        private String instruction;
        /**
         * orientation
         */
        private String orientation;
        /**
         * distance
         */
        private Double distance;
        /**
         * duration
         */
        private Double duration;
        /**
         * polyline
         */
        private String polyline;

        private List<PolylineItem> polylineItems;
        /**
         * action
         */
        private String action;
        /**
         * walkType
         */
        private String walkType;

        private Date createTime;
    }

    @Data
    public static class PolylineItem {

        public BigDecimal longitude;

        public BigDecimal latitude;

    }

}
